package com.homework.reflect.bean;
import java.util.Random;

/**
 * @author nmm
 * @date 2024-03-2024/3/26
 * @deriction njm......
 */
public enum MyEnum {
  Potato,
  DouVA,
  SmallFateMan,
  Tomato,
  TuDamn;

  private static final MyEnum[] VALUES = values();
  private static final int SIZE = VALUES.length;
  private static final Random RANDOM = new Random();

  public static MyEnum getRandomValue() {
    return VALUES[RANDOM.nextInt(SIZE)];
  }
}